extends ../../layout

block content
    .container
        .row
            table.table.table-bordered.table-hover
                tr
                    th 分类名称
                    th 录入时间
                    th 删除操作
                each category in categories
                    tr
                        td #{category.name}
                        td.time #{category.time}
                        td
                            a.btn.btn-danger.del(href='javascript:void(0)', data-url='/category/del', data-id='#{category._id}') 删除

    script(src='/js/delete.js', type='text/javascript')
    script(src='/libs/moment/moment.js', type='text/javascript')
    script(src='/js/time.js', type='text/javascript')